public class Main {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        System.out.println(stack.size());
        int num1 = stack.pop();
        System.out.println(num1);
        int num2 = stack.peek();
        System.out.println(num2);
    }
}
